php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#231500 - 01/01/03 07:55 PM [6.2] Reply to Who
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
This will add the "Re: Username" replied to post link back into showflat mode for .threads 6.2 <br /> <br />Mod Name: Reply To Who 1.0 <br /> <br />Description: This will add the "Re: Username" information back to posts in showflat mode. <br /> <br />Author: JustDave www.chattersonline.com <br />           For discussion and bug reports go to www.threadsdev.com <br /> <br />Date: 01/01/03 <br /> <br />Working Under: 6.2 <br /> <br />Files Modified: showflat.php, /templates/default/showflat.tmpl <br /> <br />New Files: None <br /> <br />Database Modifications: None <br /> <br />Notes: Restores functionality from 6.1. Adds only 2 queries. <br /> <br /> <br />Ummm... download zip, open, read, follow instructions, upload and go. <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br />Edit Note: Last updated 01/02/03 8:21 AM CST


Attachments
63321-replytowho.6.2.zip (173 downloads)



Edited by JustDave (01/19/03 01:54 PM)
_________________________
~Dave
ChattersOnline.com

Top
#231501 - 01/01/03 10:31 PM Re: [6.2] Reply to Who [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Hmmmm...<br /><br />Something doesn't work right with this. It makes all showflat show blank.<br /><br />I'm looking to see if I missed something. <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#231502 - 01/01/03 10:43 PM Re: [6.2] Reply to Who [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I can't figure it out. I follow the directions carefully... and the showflat mode just has no posts.... the page is there, it's just not showing any of the posts. <img src="/forum/images/graemlins/crazy.gif" alt="" /><br /><br />Must be a step missed.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#231503 - 01/02/03 06:30 AM Re: [6.2] Reply to Who [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I'll look again but I don't think I missed anything. Perhaps another modification is causing problems? I'll have to check things over but there wasn't much to modify. <img src="/forum/images/graemlins/crazy.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#231504 - 01/02/03 07:42 AM Re: [6.2] Reply to Who [Re: sjsaunders]
Maze Offline
Enthusiast

Registered: 10/13/99
Posts: 468
Just installed your Hack. Great! Thanks a lot!!!<br /><br />There's just one small bug:<br /><br />[]### Find this:<br /> $postrowsize = $i;<br /> $dbh -> finish_sth($sth);[/] <br /><br />Keep the line<br />$postrowsize = $i;<br />and it will work. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br /><br />Another thing: It displays [[:"blue"]Re:**DONOTDELETE**[/]] if replying to an anonymous user.

Top
#231505 - 01/02/03 08:23 AM Re: [6.2] Reply to Who [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I forgot to add the line being replaced in the last showflat.php step back in with what's being added. The zip has the updated instructions. Also, I had left the <span id=... portion of code around the subject which didn't need to be in there for this mod so I took that out as well.<br /><br />It *will* work now. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#231506 - 01/02/03 01:08 PM Re: [6.2] Reply to Who [Re: sjsaunders]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Dave - I am getting the following error...<br /><br />Parse error: parse error in /home/sites/site30/web/forums/showflat.php on line 956<br /><br />Which seems to be this section...<br /><br /> $postrow[$i]['Subject'] = $Subject;<br /> $postrow[$i]['replyto_link'] = "<a href=\"{$config['phpurl']}/showthreaded.php?Cat=$Cat&amp;Board=$Board&amp;Number=$ParentPost&amp;page=$page&amp;view=$view&amp;sb=$sb&amp;o=$o&amp;vc=1\" target=\"_new\" title=\"{$ubbt_lang['RESPONSE_TO']}$ParentPost\" alt=\"{$ubbt_lang['RESPONSE_TO']}$ParentPost\">";<br /><br />Any thoughts? Re-checked the few alterations all okay.<br /><br />Ian
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#231507 - 01/02/03 08:50 PM Re: [6.2] Reply to Who [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Works Great Now!!! Awesome Dave! <img src="/forum/images/graemlins/grin.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#231508 - 01/03/03 09:07 AM Re: [6.2] Reply to Who [Re: Gorlum]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
What you posted looks to be ok. I'm not sure what may be going on... <img src="/forum/images/graemlins/crazy.gif" alt="" /><br /><br />Perhaps a template error? Make sure you have the backets {} around the variable.
_________________________
~Dave
ChattersOnline.com

Top
#231509 - 01/03/03 11:56 PM Re: [6.2] Reply to Who [Re: sjsaunders]
sportbikes Offline
Member

Registered: 10/29/02
Posts: 167
Loc: So Cal USA
Is this the hack that was noted to increase the load significantly for large databases?
_________________________
mike
www.esportbike.com

Top
#231510 - 01/04/03 01:55 AM Re: [6.2] Reply to Who [Re: alsalmicom]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
No.... this is better. Only 2 queries. Mine was 2 per post. Dave's is 2 total. Almost no load. <img src="/forum/images/graemlins/grin.gif" alt="" /><br /><br />JustDave rules.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#231511 - 01/04/03 03:12 AM Re: [6.2] Reply to Who [Re: sjsaunders]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
I added this one and it works great! <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#231512 - 01/04/03 03:38 AM Re: [6.2] Reply to Who [Re: jacksonm99]
sportbikes Offline
Member

Registered: 10/29/02
Posts: 167
Loc: So Cal USA
Added it to mine and I'm sure it will make a lot of members happy! Doesn't seem to create a server burden either <img src="/forum/images/graemlins/grin.gif" alt="" />
_________________________
mike
www.esportbike.com

Top
#231513 - 01/04/03 08:08 AM Re: [6.2] Reply to Who [Re: sjsaunders]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
For some reason, I had the following code in showflat.php - I am not sure where that came from, as I do not recognise it from any mod installed since 6.2. I checked it against a copy from the members area at Infopop. I also noticed that all files on there are dated 30/12/02 - have they been updated???? <img src="/forum/images/graemlins/confused.gif" alt="" /><br /><br />
Code:
  		 else {<br />		 	 $postrow[$i]['Subject'] = "&lt;span id=\"subject$i\"&gt;$Subject&lt;/span&gt;";<br />		 }
<br /><br />So I can only assume this is from the origianl copy and since been removed <img src="/forum/images/graemlins/confused.gif" alt="" /><br /><br />Strange, as I wasn't getting any errors until I installed your mod - which works fine once I take out the code above.<br /><br />Just posting this in case anyone else gets a similar problem.<br /><br />Ian<br /><br />
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#231514 - 01/04/03 08:18 AM Re: [6.2] Reply to Who [Re: Gorlum]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
That code is from your quick reply modification. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#231515 - 01/04/03 10:07 AM Re: [6.2] Reply to Who [Re: sjsaunders]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Darn it - for the benefit of anyone who has the quick reply mod installed, the installation should look like this...<br /><br />
Code:
 <br /><br /><br /><br />### In showflat.php find this:<br /><br /><br />         $Parentlink = "";<br />         if ($ParentPost) {<br />             $postrow[$i]['Subject'] = "&lt;a href=\"{$config['phpurl']}/showthreaded.php?Cat=$Cat&amp;amp;Board=$Board&amp;amp;Number=$ParentPost&amp;amp;page=$page&amp;amp;view=$view&amp;amp;sb=$sb&amp;amp;o=$o&amp;amp;vc=1\" target=\"_new\" title=\"{$ubbt_lang['RESPONSE_TO']}$ParentPost\" alt=\"{$ubbt_lang['RESPONSE_TO']}$ParentPost\"&gt;$Subject&lt;/a&gt;";<br />         }<br /><br />else <br />{		 	 <br />$postrow[$i]['Subject'] = "&lt;span id=\"subject$i\"&gt;$Subject&lt;/span&gt;";<br />		 }<br /><br /><br />### and change it to this:<br /><br /><br />		 $postrow[$i]['Subject'] = $Subject;<br />         $postrow[$i]['replyto_link'] = "&lt;a href=\"{$config['phpurl']}/showthreaded.php?Cat=$Cat&amp;amp;Board=$Board&amp;amp;Number=$ParentPost&amp;amp;page=$page&amp;amp;view=$view&amp;amp;sb=$sb&amp;amp;o=$o&amp;amp;vc=1\" target=\"_new\" title=\"{$ubbt_lang['RESPONSE_TO']}$ParentPost\" alt=\"{$ubbt_lang['RESPONSE_TO']}$ParentPost\"&gt;";<br />$postrow[$i]['Subject'] = "&lt;span id=\"subject$i\"&gt;$Subject&lt;/span&gt;";<br /><br />  
<br /><br />This ensures that both the 'Reply to Who' and the 'Quick Reply' mods both work <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Ian
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#231516 - 01/14/03 08:27 PM Re: [6.2] Reply to Who [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Will work in 6.2.1.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#231517 - 01/15/03 08:31 AM Re: [6.2] Reply to Who [Re: Daine]
Sat4all Offline
Member

Registered: 04/30/02
Posts: 151
Loc: The Netherlands
I just installed this 2 times 100% according to the instructions on a clean 6.2 install with some design changes. (not in the showflat files)<br />I have the same problem. Blank screen.<br /><br />Regards,<br /><br />Ron.<br />www.sat4all.com
_________________________
Those who fail to read ask many questions:-)

Top
#231518 - 01/18/03 05:23 AM Re: [6.2] Reply to Who [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Same thing needs to be done here...<br /><br />If it's a reply to user number 1... then it needs to fetch the anonname from the posts table. <img src="/forum/images/graemlins/tongue.gif" alt="" /> Otherwise you get "Re: ***DONOTDELETE***" if it's a reply to an anon post.<br /><br />Tried to fix this one too....but it stumped me. If I do it, it'll probably use unneeded queries. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#231519 - 01/18/03 07:32 AM Re: [6.2] Reply to Who [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I'll get this worked on sometime today. There should be no extra queries needed. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
Page 1 of 3 1 2 3 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks